import { defineConfig } from 'vitepress'

export default defineConfig({
    base: '/docs/',
    title: 'KITEGO-Admin',
    description:
        '「开箱即用」「人人全栈」使用流行技术栈快速创建商业级后台管理系统-KITEGO-Admin是基于TP8、Vue3.x、Typescript、Vite、Pinia、Element plus、amis等的开源后台系统',
    head: [
        [
            'meta',
            {
                name: 'keywords',
                content: 'KITEGO-Admin,ThinkPHP8通用后台,Vue3后台,KITEGO-Admin文档,vue3开源后台'
            }
        ],
        ['meta', { name: 'robots', content: 'all,follow' }],
        ['link', { rel: 'icon', href: '/docs/favicon.ico' }] 
    ],
    themeConfig: {
        logo: '/logo.png',
        nav: [
            { text: '首页', link: '/' },
            { text: '开发文档', link: '/guide' },
            { text: 'Gitee源码下载', link: 'https://gitee.com/ruanxiaobao/kitegoadmin.git' }
        ],

        sidebar: [
            {
                text: '起步',
                collapsed: false,
                items: [
                    { text: '序言', link: '/guide/' },
                    { text: '快速上手', link: '/guide/install' },
                    { text: '常见问题', link: '/guide/question' }
                ]
            },
            {
                text: '请求',
                collapsed: false,
                items: [
                    { text: '请求加密', link: '/guide/request/encrypt' },
                    { text: '双Token方案', link: '/guide/request/token' }, 
                    { text: '常用中间件', link: '/guide/request/middleware' },
                ]
            },
            {
                text: '模块策略',
                collapsed: false,
                items: [
                    { text: '存储策略', link: '/guide/strategy/oss' }
                ]
            },
            {
                text: '常用服务类',
                collapsed: false,
                items: [
                    { text: '分布式锁服务类', link: '/guide/service/lock' },
                    { text: '缓存服务类', link: '/guide/service/cache' }, 
                    { text: '接口加密服务类', link: '/guide/service/apiSecurity' },
                    { text: '日志服务类', link: '/guide/service/log' },
                    { text: '表格操作服务类', link: '/guide/service/excel' },
                ]
            },
            {
                text: '附录',
                collapsed: false,
                items: [ 
                    { text: '助手函数', link: '/guide/appendix/function' },
                ]
            }
        ],

        footer: {
            message: 'Released under the MIT License.',
            copyright: 'Copyright © 2019-present kitego'
        }
    }
})
